package simbot.example.config.system;

import lombok.Getter;
import lombok.Setter;
import org.apache.http.HttpHost;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * The type Http proxy config.
 *
 * @author minmin
 * @since 2021 /07/10 15:42
 */
@Configuration
@ConfigurationProperties("network.proxy.http")
@Getter
@Setter
public class HttpProxyConfig {
    private String host;
    private Integer port;

    /**
     * Get http proxy host http host.
     *
     * @return the http host
     */
    public HttpHost getHttpProxyHost(){
        return new HttpHost(host, port);
    }
}
